package Game;

public class Vector {
	private double x;
	private double y;
	
	public Vector() {
		this(0, 0);
	}
	
	public Vector(Vector other) {
		this(other.getX(), other.getY());
	}
	
	public Vector(double initX, double initY) {
		x = initX;
		y = initY;
	}
	
	public void set(Vector newVector) {
		this.x = newVector.getX();
		this.y = newVector.getY();
	}
	
	public void set(double newX, double newY) {
		x = newX;
		y = newY;
	}
	
	public void multiplyBy(double m) {
		x *= m;
		y *= m;
	}
	
	public double getX() {
		return x;
	}
	
	public double getY() {
		return y;
	}
	
	public void SetX(double d) {
		x = d;
	}
	
	public void SetY(double d) {
		y = d;
	}
	
	public int getRoundedX() {
		return (int)x;
	}
	
	public int getRoundedY() {
		return (int)y;
	}
	
	public void addBy(Vector other) {
		this.x += other.getX();
		this.y += other.getY();
	}
}
